package com.atao.view;

import java.util.List;

import com.atao.view.ProductListLinearLayout.ViewBean;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
//class MyGridViewAdapter{}/*
public class MyGridViewAdapter extends BaseAdapter {
	List<ViewBean> views;
	List<String> productIntrs;
	Context ctx;
	int size;
	public MyGridViewAdapter(Context ctx, List<ViewBean> views,List<String> productIntrs) {
		this.ctx = ctx;
		this.views = views;
		this.productIntrs=productIntrs;
		size=productIntrs.size();
	}

	@Override
	public int getCount() {
		return size;
	}
	@Override
	public ViewBean  getItem(int position) {
		return views.get(position);
	}

	@Override
	public long getItemId(int position) {
		return 0;
	}
	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewBean vb= views.get(position);
		View view=vb.getView();
		view.setTag(productIntrs.get(position));
		return view;
	}
}